<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateSlidersTable extends Migration
{
    //提交
    public function up()
    {
        Schema::create('sliders', function (Blueprint $table) {
            $table->increments('id');
            $table->timestamps();
            $table->string('title')->comment('轮播图标题');
            $table->string('thumb')->comment('图片地址');
            $table->string('url')->comment('跳转地址');
            $table->tinyInteger('is_show')->comment('前台是否显示');
        });
    }

    //回滚
    public function down()
    {
        Schema::dropIfExists('sliders');
    }
}
